package falcon.common;

public final class FalconStore {
	
	public static String getPath(String name, FalconConfig config) {
		String dir = config.getDir();
		String path;
		if (dir.charAt(dir.length() - 1) != '/') {
			path = String.format("%s/%s", dir, name);
		} else {
			path = dir + name;
		}
		return path;
	}
}
